<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../metadatosPopUp.jsp" flush = "True" />
<html>
    <head>
        <title>Bienvenido al Sistema ERP MAGR </title>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
            </header><!-- .header-->
            <main class="content">
                <form method="post" action="./TarrySystem?action=items&index=3" class="formee">
                    
                    <fieldset>
                        <legend>Agregar Producto</legend>
                        <c:if test="${tarryPrincipal.nErrores>0}">
                            <div class="formee-msg-error">
                                <h3>Incidencias:</h3>
                                <ul>
                                    <c:forEach items="${tarryPrincipal.errores}" var="e">
                                        <li><c:out value="${e}"/></li>
                                        </c:forEach>
                                </ul>
                            </div> 
                        </c:if>
                        <div class="grid-12-12">
                            <label>ID Producto<em class="formee-req">*</em></label>
                            <input type="text" name="idProducto" onKeyup="this.value = ventero(this.value)"/>
                        </div>
                        <div class="grid-6-12">
                            <label>Numero Unidades<em class="formee-req">*</em></label>
                            <input type="text" name="nUnidades" onKeyup="this.value = ventero(this.value)" />
                        </div>
                        <div class="grid-6-12">
                            <label>Precio / Unidad<em class="formee-req">*</em></label>
                            <input type="text" name="pUnidades" onKeyup="this.value = vdoble(this.value)"/>
                        </div>
                        <div class="grid-6-12">
                            <label>Numero Corrugados<em class="formee-req">*</em></label>
                            <input type="text" name="nCorrugados" onKeyup="this.value = ventero(this.value)"/>
                        </div>
                        <div class="grid-6-12">
                            <label>Precio / Corrugado<em class="formee-req">*</em></label>
                            <input type="text" name="pCorrugados" onKeyup="this.value = vdoble(this.value)"/>
                        </div>
                        <div class="grid-12-12">
                            <label> % De Descuento<em class="formee-req">*</em></label>
                            <input type="text" name="decuentoItem" onKeyup="this.value = vdoble(this.value)"/>
                        </div>
                        <div class="grid-3-12">
                            <input type="submit" name="Guardar" />
                        </div>
                    </fieldset>
                </form>
            </main>
        </div><!-- .wrapper -->
    </body>
</html>
